Method: AWS::SimpleWorkflow::HistoryEvent::Attributes#[]
- Defined in:
- lib/aws/simple_workflow/history_event.rb
#[](key) ⇒ Object
Returns the attribute with the given name (key).
177 178 179 180 181 182 183 184 185 |
# File 'lib/aws/simple_workflow/history_event.rb', line 177 def [] key key = _camel_case(key) if @data.key?(key) _cast(key, @data[key]) else msg = "no such attribute `#{key}`, valid keys are #{_key_string}" raise ArgumentError, msg end end |